package com.atmk.atmk.designMode.创建型.原型模式.demo2;

import java.util.List;

public class Client {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom", 1, "白色",List.of("测试"));
        Sheep sheep2 = (Sheep) sheep.clone();
        Sheep sheep3 = (Sheep)sheep.clone();
        //......
        System.out.println(sheep);
        System.out.println(sheep2);
        System.out.println(sheep3);
        System.out.println(sheep2==sheep3);
        System.out.println(sheep3.getAge()==sheep2.getAge());
        System.out.println(sheep3.getList()==sheep2.getList());
    }
}
